POV-Ray : Newsgroups : povray.newusers : Using different image maps with different clock values : Re: Using different image maps with different clock values Server Time
4 Nov 2024 14:01:15 EST (-0500)
  Re: Using different image maps with different clock values  
From: Warp
Date: 22 Aug 2002 13:14:06
Message: <3d651bde@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
> 1. Use a case statement
> 2. Use filenames that can be referenced from the clock value, e.g. 1.bmp, 2.bmp

  Another solution, when you have file names without consecutive numbers,
is to put all the file names in an array and the index this array with
something like int((dimensions_size(Images,1)-1)*clock+.5)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.